import request from '@/utils/request'

// 查询评测题目答案列表
export function listAppraisalAnswer(query) {
  return request({
    url: '/business/appraisalAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询评测题目答案详细
export function getAppraisalAnswer(id) {
  return request({
    url: '/business/appraisalAnswer/' + id,
    method: 'get'
  })
}

// 新增评测题目答案
export function addAppraisalAnswer(data) {
  return request({
    url: '/business/appraisalAnswer',
    method: 'post',
    data: data
  })
}

// 修改评测题目答案
export function updateAppraisalAnswer(data) {
  return request({
    url: '/business/appraisalAnswer',
    method: 'put',
    data: data
  })
}

// 删除评测题目答案
export function delAppraisalAnswer(id) {
  return request({
    url: '/business/appraisalAnswer/' + id,
    method: 'delete'
  })
}
